//
//  MyButton.m
//  HGMM
//
//  Created by @HUI on 15/9/8.
//  Copyright (c) 2015年 cc. All rights reserved.
//

#import "MyButton.h"

@implementation MyButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)init{
    self = [super init];
    if (self) {
        
    }
    return self;
}

-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(contentRect.size.width/2-12, contentRect.size.height/2-12, 24, 24);
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(contentRect.size.width/2-12, contentRect.size.height/2-12, 24, 24);
}

@end
